/*
 * Copyright (c) NEXTCHIP Inc. 2017-2020. All rights reserved.
 * Description: NEXTCHIP driver
 * Author: NEXTCHIP Inc.
 * Create: 2020/03/20
 * Modification: 2020/06/20, Hisilicon.
 */

#ifndef _MOTION_H_
#define _MOTION_H_

#include "common.h"

#define FUNC_ON 0x01
#define FUNC_OFF 0x00

typedef struct _motion_mode {
    unsigned char ch;
    unsigned char devnum;
    unsigned char set_val;

    unsigned char fmtdef;
} motion_mode;

void motion_onoff_set(motion_mode *motion_set);
void motion_display_onoff_set(motion_mode *motion_set);
void motion_pixel_all_onoff_set(motion_mode *motion_set);
void motion_pixel_onoff_set(motion_mode *motion_set);
void motion_pixel_onoff_get(motion_mode *motion_set);
void motion_tsen_set(motion_mode *motion_set);
void motion_psen_set(motion_mode *motion_set);
void motion_detection_get(motion_mode *motion_set);

#endif /* _MOTION_H_ */
